from django.test import TestCase

# Create your tests here.
from markdown.models import MdFiles, MdSpace

class Demo(TestCase):
    def setUp(self):
        print('setUp')

    def tearDown(self):
        print('tearDown')

    def test_add(self):
        dicts = {'id': 2, 'space': 'common', 'upload_dir': './static/common/los'}
        MdSpace(**dicts).save()


class MDTestCase(TestCase):

    # def setUp(self):
    #     pass

    def test_query(self):
        res = MdFiles.objects.values()
        print("res:", res)

    def test_query_two(self):
        res = MdSpace.objects.values()
        print("res:", res)
